
float oldMousePosition;
boolean init;

void initMoveInSpace()
{
  oldMousePosition = 0.0;
  
  init = false;
}

void moveInSpace()
{
  if( !init )
  {
    oldMousePosition = mouseY;
    init = true;
    return;
  }
  
  y1Bound.target( y1Bound.value + (oldMousePosition - mouseY)  );
  y2Bound.target( y2Bound.value + (oldMousePosition - mouseY)  );
  oldMousePosition = mouseY;
}

void stopMoveInSpace()
{
  //y1Bound.target( y1Bound.value + (oldMousePosition - mouseY)  );
  //y2Bound.target( y2Bound.value + (oldMousePosition - mouseY)  );
  
  init = false;
}
